﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Spinning.Spinning.Unitity;

namespace Spinning.Spinning.Entity.Scenes
{
    class ItemScene : Scene
    {
        public override void OnLoad()
        {
            base.OnLoad();
            Sprite backGroundSprite = new Sprite();
            backGroundSprite.textureName = "bg";
            backGroundSprite.ZIndex = Constants.background;
            backGroundSprite.OnLoad();
            this.Attach(backGroundSprite);

            Sprite bar = new Sprite();
            bar.textureName = "item_store/bar";
            bar.ZIndex = Constants.ui;
            bar.Position = new Vector2(75, 45);
            bar.OnLoad();
            this.Attach(bar);

            Sprite itemTitleSprite = new Sprite();
            itemTitleSprite.textureName = "item_store/txt_items";
            itemTitleSprite.ZIndex = Constants.ui;
            itemTitleSprite.Position = new Vector2(170, 64);
            itemTitleSprite.OnLoad();
            this.Attach(itemTitleSprite);
        }

        public override Scene Clone()
        {
            Scene scene = new ItemScene();
            scene.Size = new Vector2(Constants.Window_Width, Constants.Window_Height);
            scene.OnLoad();
            scene.SortChildren();
            return scene;
        }
    }
}
